package com.haliyoo.adhere.activity;

import java.util.Timer;
import java.util.TimerTask;

import com.haliyoo.adhere.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;

public class AdHereActivity extends Activity {
	private static String TAG = "AdHereActivity";
	private long time = 500;
	Handler localHandler = new Handler();
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //this.requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉标题栏
        setContentView(R.layout.main);

		localHandler.postDelayed(new Runnable() {
			@Override
			public void run() {
				goHome();
			}
		}, time);
    }
    
	private void goHome() {
		Intent intent = new Intent(this, LoginActivity.class);
		startActivity(intent);
		finish();
	}
}